﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AAA.TradeLanguage.Data
{
    public class ContractInfo
    {
        private int _iYear;
        public int Year
        {
            get { return _iYear; }
            set { _iYear = value; }
        }

        private int _iMonth;
        public int Month
        {
            get { return _iMonth; }
            set { _iMonth = value; }
        }

        private string _strSymbolName;
        public string SymbolName
        {
            get { return _strSymbolName; }
            set { _strSymbolName = value; }
        }

        private SymbolTypeEnum _eSymbolType;
        public SymbolTypeEnum SymbolType
        {
            get { return _eSymbolType; }
            set { _eSymbolType = value; }
        }

        private float _fExecutePrice;
        public float ExecutePrice
        {
            get { return _fExecutePrice; }
            set { _fExecutePrice = value; }
        }

        public ContractInfo Clone()
        {
            ContractInfo contractInfo = new ContractInfo();

            contractInfo.Year = Year;
            contractInfo.Month = Month;
            contractInfo.SymbolName = SymbolName;
            contractInfo.SymbolType = SymbolType;
            contractInfo.ExecutePrice = ExecutePrice;

            return contractInfo;
        }
    }
}
